<@master template="master/master-loan" title="贷款详情">
<div class="detailsBox ">
	<!-- 贷款基本信息 begin -->
	<div class="openBox">
		<h3>
			<i class="jtIco"></i>贷款基本信息
		</h3>
		<div class="detaiTab">
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td align="right" class="bg" width="15%">贷款单号:</td>
					<td width="20%">${oaLoanDetail.billCode}</td>
					<td align="right" class="bg" width="15%">产品类型:</td>
					<td width="18%"><@select dataSouceType="OTO_LOAN_TYPE_SB"
						value="${oaLoanDetail.loanType}" renderonly="true"/></td>
					<td align="right" class="bg" width="15%">贷款申请日期:</td>
					<td width="18%"><span class=" fs14"> <#if
							(oaLoanDetail.createdate??)>
							${oaLoanDetail.createdate?string("yyyy-MM-dd")} </#if> </span></td>
				</tr>
				<tr>
					<td align="right" class="bg">征信银行:</td>
					<td><@select dataSouceType="BANKTYPEO2O"
						value="${oaLoanDetail.bankType}" renderonly="true"/></td>
					<td align="right" class="bg"><span class=" fs14">还款方式:</span></td>
					<td><span class=" fs14"> <@select
							dataSouceType="OTOREPAYMENTWAY"
							value="${oaLoanDetail.repaymentway}" renderonly="true"/></span></td>
					<td align="right" class="bg"><span class=" fs14">申请期限:
					</span></td>
					<td><span class=" fs14">${oaLoanDetail.loanTerm}个月</span></td>
				</tr>
				<tr>
					<td align="right" class="bg">放款银行:</td>
					<td><@select dataSouceType="BANKTYPEO2O"
						value="${oaLoanDetail.bankrefundcode}" renderonly="true"/></td>
					<td align="right" class="bg"><span class=" fs14">利率:</span></td>
					<td><span class=" fs14"><#if (oaLoanDetail.loanrate)??>
							${(oaLoanDetail.loanrate*100)?string("0.000")}% </#if></span></td>
					<td align="right" class="bg"><span class=" fs14">申请金额(元):</span></td>
					<td><span class=" fs14"><@numberFormat
							value="${oaLoanDetail.loanAmount}" /></span></td>
				</tr>
				<tr>
					<td align="right" class="bg">客户名称:</td>
					<td>${oaLoanDetail.customercode}-${oaLoanDetail.customerName}</td>
					<td align="right" class="bg">担保方式:</td>
					<td><@select dataSouceType="OTOGUARANTEEWAY"
						value="${oaLoanDetail.guaranteeway}" renderonly="true"/></td>
					<td align="right" class="bg">银行批复金额(元):</td>
					<td><@numberFormat value="${oaLoanDetail.bankloanAmount}" /></td>
				</tr>
				<tr>
					<td align="right" class="bg">借款人姓名:</td>
					<td>${oaLoanDetail.loanername}</td>
					<td align="right" class="bg">放款日期:</td>
					<td><#if (oaLoanDetail.loaddate??)>
						${oaLoanDetail.loaddate?string("yyyy-MM-dd")} </#if></td>
					<td align="right" class="bg">放款金额(元):</td>
					<td><@numberFormat value="${oaLoanDetail.loanAmount}" /></td>
				</tr>
				<tr>
					<td align="right" class="bg">经办人:</td>
					<td>${oaLoanDetail.operatorName}</td>
					<td align="right" class="bg">客户类型:</td>
					<td><@select dataSouceType="OTO_CUSTOMER_TYPE"
						value="${oaLoanDetail.customerType}" renderonly="true"/></td>
					<td align="right" class="bg">还款来源:</td>
					<td>${oaLoanDetail.repaymentsource}</td>
				</tr>
			</table>
		</div>
	</div>
	<!-- 贷款基本信息  end -->
	<!--借款人 begin  -->
	<div class="openBox">
		<h3>
			<i class="jtIco"></i>借款人信息
		</h3>
		<div class="detaiTab">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tbody>
					<tr>
						<td align="right" class="bg" width="18%">借款人姓名:</td>
						<td>${oaLoanDetail.loanername}</td>
						<td align="right" class="bg">客户类型</td>
						<td><@select dataSouceType="OTO_CUSTOMER_TYPE" class="tabInp"
							value="${oaLoanDetail.customerType}" renderonly="true"/></td>
					</tr>
					<tr>
						<td align="right" class="bg">性别:</td>
						<td><@select dataSouceType="SEX" class="tabInp"
							value="${oaLoanDetail.sex}" renderonly="true"/></td>
						<td align="right" class="bg">年龄:</td>
						<td>${oaLoanDetail.age}岁</td>
					</tr>
					<tr>
						<td align="right" class="bg">证件类型:</td>
						<td><@select dataSouceType="OTOIDCARDTYPE" class="tabInp"
							value="${oaLoanDetail.idcardtype}" renderonly="true"/></td>
						<td align="right" class="bg">证件号码:</td>
						<td>${oaLoanDetail.idcard}</td>
					</tr>
					<tr>
						<td align="right" class="bg">发证机关:</td>
						<td>${oaLoanDetail.idauthority}</td>
						<td align="right" class="bg">证件到期日:</td>
						<td><#if (oaLoanDetail.idexpiredate)??>
							${oaLoanDetail.idexpiredate?string("yyyy-MM-dd")} </#if></td>
					</tr>
					<tr>
						<td align="right" class="bg">联系电话:</td>
						<td>${oaLoanDetail.mobile}</td>
						<td align="right" class="bg">住宅电话:</td>
						<td>${oaLoanDetail.telephone}</td>
					</tr>
					<tr>
						<td align="right" class="bg">银行状态:</td>
						<td><span class=" fs14"><@select
								dataSouceType="BANK_ZX_STATUS"
								value="${oaLoanDetail.bankStatus}" renderonly="true"/></span></td>
						<td align="right" class="bg">银行申请编号:</td>
						<td>${oaLoanDetail.bankApplyno}</td>
					</tr>
					<tr>
						<td align="right" class="bg">银行预审批额度:</td>
						<td><@numberFormat value="${oaLoanDetail.creditline}" /></td>
						<td align="right" class="bg">银行上浮范围:</td>
						<td><@numberFormat value="${oaLoanDetail.creditrange}" /></td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>
	<!--借款人 end  -->
	<!-- 配偶信息  begin-->
	<#if oaLoanDetail.marrchildren=='UMM'> <#else>
	<div class="openBox">
		<h3>
			<i class="jtIco"></i>配偶信息
		</h3>
		<div class="detaiTab">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tbody>
					<tr>
						<td align="right" class="bg" width="18%">配偶姓名:</td>
						<td width="35%">${oaLoanDetail.couplename}</td>
						<td align="right" class="bg" width="18%">配偶年龄:</td>
						<td>${oaLoanDetail.coupleage}</td>
					</tr>
					<tr>
						<td align="right" class="bg">证件类型:</td>
						<td><@select dataSouceType="OTOIDCARDTYPE" class="tabInp"
							value="${oaLoanDetail.coupleidcardtype}" renderonly="true"/></td>
						<td align="right" class="bg">证件号码:</td>
						<td>${oaLoanDetail.coupleidcard}</td>
					</tr>
					<tr>
						<td align="right" class="bg">配偶联系电话:</td>
						<td>${oaLoanDetail.couplemobile}</td>
						<td align="right" class="bg">配偶现住址:</td>
						<td>${oaLoanDetail.couplenowaddress}</td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>
	<!-- 配偶信息  end-->
	</#if>
	<!--保证金 begin  -->
	<div class="openBox">
		<h3>
			<i class="jtIco"></i>保证金、管理费与风险补偿金详情
		</h3>
		<div class="detaiTab">
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td align="right" class="bg" width="15%">保证金费率:</td>
					<td width="20%"><#if (oaLoanDetail.depositrate??)>
						${oaLoanDetail.depositrate*100}% </#if></td>
					<td align="right" class="bg" width="15%">管理费费率:</td>
					<td width="18%"><#if (oaLoanDetail.managefeerate??)>
						${oaLoanDetail.managefeerate*100}% </#if></td>
					<td align="right" class="bg" width="15%">风险补偿金费率:</td>
					<td width="18%"><span class=" fs14"> <#if
							(oaLoanDetail.riskdepositrate??)>
							${oaLoanDetail.riskdepositrate*100}% </#if> </span></td>
				</tr>
				<tr>
					<td align="right" class="bg">已收保证金:</td>
					<td>${oaLoanDetail.existDeposit}</td>
					<td align="right" class="bg"><span class=" fs14">已收管理费:</span></td>
					<td><span class=" fs14">${oaLoanDetail.managefee}</span></td>
					<td align="right" class="bg"><span class=" fs14">已收风险补偿金:
					</span></td>
					<td><span class=" fs14">${oaLoanDetail.existRiskDeposit}</span></td>
				</tr>
				<tr>
					<td align="right" class="bg">已退保证金:</td>
					<td><@numberFormat value="${oaLoanDetail.unDeposit}"/></td>
					<td align="right" class="bg"><span class=" fs14">已退管理费:</span></td>
					<td><span class=" fs14"><@numberFormat
							value="${oaLoanDetail.existManagefee}"/> </span></td>
					<td align="right" class="bg"><span class=" fs14">已退风险补偿金:</span></td>
					<td><span class=" fs14"><@numberFormat
							value="${oaLoanDetail.unRiskDeposit}" /></span></td>
				</tr>
			</table>
		</div>
	</div>
	<!--保证金 end  -->
	<!-- 逾期信息  begin -->
 	<div class="openBox"> 
 		<h3 class="mt20"> 
			<i class="jtIco1"></i>代偿和逾期信息 
 		</h3> 
 		<div class="action-ajax-load-show" 
 			data-url="<@url value='/oaDetail/overdue?billCode=${oaLoanDetail.billCode}'/>" 
 			data-ajax-wait-img="<@cdn value='img.wait'/>" style="display: none"></div> 
 	</div> 
	<!-- 逾期信息  end -->
	<!-- 代偿信息   begin -->
	<!-- <div class="openBox">
		<h3 class="mt20">
			<i class="jtIco1"></i>代偿信息
		</h3>
		<div class="action-ajax-load-show"
			data-url="<@url value='/oaDetail/df?billCode=${oaLoanDetail.billCode}'/>"
			data-ajax-wait-img="<@cdn value='img.wait'/>" style="display: none"></div>
	</div> -->
	<!-- 代偿信息   end -->
	<!-- 夫妻双方贷款记录  begin -->
		<div class="openBox">
		<h3 class="mt20">
			<i class="jtIco1"></i>夫妻双方的贷款记录
		</h3>
		<div class="action-ajax-load-show"
		data-url="<@url value='/customerInfo/rest/loan_detail?customer_id_number=${oaLoanDetail.idcard}&mate_id_number=${oaLoanDetail.coupleidcard}' />"
		data-ajax-wait-img="<@cdn value='img.wait'/>" style="display: none">
		</div>
		</div>
		<!-- 夫妻双方贷款记录  end -->
	<!-- 跳转按钮 -->
	<div class=" tac mtb20">
	<#if oaLoanDetail.loanType=='BK'> 
		<@permission permissionName="continueLoanapply">
				<a class="action-ajax-btn btn_auto_30 btn_blue" data-url="${oaXdUrl}">终端贷续贷</a>
		</@permission>
		</#if>
		<a class="btn_auto_30 btn_blue" href="${oaZxUrl}" target="_blank">查看旧系统征信调查</a>
		<a class="btn_auto_30 btn_blue" href="${oaNsUrl}" target="_blank">查看旧系统内审审批</a>
		<a class="btn_auto_30 btn_blue" href="${oaYhUrl}" target="_blank">查看旧系统银行申报</a>
		<a class="btn_auto_30 btn_blue" href="${oaFkUrl}" target="_blank">查看旧系统放款与还款计划</a>
		<a class="btn_auto_30 btn_blue" href="${oaBzjUrl}" target="_blank">查看旧系统保证金与管理费</a>
	</div>
</div>
</@master>

